<template>
  <div class="footer">
    <div class="centered">
        <div class="logo">
            <span></span>
        </div>
        <div class="central">
            <ul>
                <li>
                    <router-link to="/">网站首页&nbsp;|&nbsp;</router-link>
                </li>
                <li>
                    <router-link to="/Company">企业介绍&nbsp;|&nbsp;</router-link>
                </li>
                <li>
                    <router-link to="/Product">产品展示&nbsp;|&nbsp;</router-link>
                </li>
                <li >
                    <router-link to="/Infomation">新闻资讯&nbsp;|&nbsp;</router-link>
                </li>
                <li>
                    <router-link to="/Safety">安全宣传&nbsp;|&nbsp;</router-link>
                </li>
                <li >
                    <router-link to="/Application">合作伙伴&nbsp;|&nbsp;</router-link>
                </li>
                <li >
                    <router-link to="/Contact">联系方式&nbsp;|&nbsp;</router-link>
                </li>
            </ul>
            <p class="address">版权所有&copy;2018-2019 <span v-text="this.footerlist.company.value['0']"></span> <span v-text="this.footerlist.address.name"></span>:
                <span v-text="this.footerlist.address.value['0']"></span> 备ICP800051890</p>
            <p>站长统计Copyright 2018-2019</p>
        </div>
        <div class="qr-code">
            <img :src="this.footerlist.qr['0']" alt="">
            <img :src="this.footerlist.qr['1']" alt="">
        </div>
    </div>
 </div>
</template>
<script>
export default {
  name: 'Footer',
  data() {
    return {
        footerlist:{
            company:{name:"",value:[""]},
            address:{name:"",value:[""]},
            qr:["", ""]
        }
    }
  },
  created(){
      var node = this;
      window.$.get(this.apiUrl + '/settings/all', {}, function (res) {
          node.footerlist = res;
      })
  }
};
</script>
<style scoped>
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
button,
textarea,
p,
blockquote,
th,
td {
  overflow: hidden;
}
.footer{
      width: 100%;
      height: 136px;
      padding-bottom: 14px;
      background-color: #e5e5e5;
  }
.footer .centered{
      width: 1200px;
      height: 136px;
      margin: 0 auto;
      position: relative;
  }
.footer .centered .logo{
    width: 152px;
    height: 67px;
    display: inline-block;
    position: absolute;
    top: 49.6px;
  }
.footer .centered .logo span{
    background: url("/home/static/imgs/footer-logo.png") no-repeat;
    background-size: 152px 67px;  
    display: inline-block;
    width: 152px;
    height: 67px;
  }
.footer .centered .central{
    display: inline-block;
    margin-left: 231px;
    color: #5d5d5d;
    font-size: 12px;
    position: absolute;
    top: 48.8px;  
    width: 531px;
    height: 78px;
    line-height: 16px;
}
.footer .centered .central ul li{
    float: left;
}
.footer .centered .central ul li a{
    text-decoration: none;
}
.footer .centered .central .address{
    padding: 16px 0;
}
.footer .centered .qr-code{
    display: inline-block;
    margin-left: 956px;
    position: absolute;
    top: 37.6px;
    margin-bottom: 37.6px;
}
.footer .centered .qr-code img{
    width: 100px;
    height: 100px;
}
.footer .centered .qr-code img:nth-child(2){
    margin-left: 39px;
}
</style>
